#include <stdio.h>
#include <unistd.h>
#include "plat_display.h"

int main()
{
    CPlatDisplay* display = new CPlatDisplay();

    display->GetMap().Clear(0xFF0000, 0, 0, 200, 200);
    display->GetMap().Clear(0x00FF00, 200, 0, 200, 200);
    display->GetMap().Clear(0x0000FF, 0, 200, 200, 200);
    display->GetMap().Clear(0xFFFF00, 200, 200, 200, 200);

    display->Refresh(0, 0, 200, 200);
    sleep(1);
    display->Refresh(200, 0, 200, 200);
    sleep(1);
    display->Refresh(0, 200, 200, 200);
    sleep(1);
    display->Refresh();
    sleep(1);

    delete display;
    return 0;
}
